package com.seven.webhook.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisPlusConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

    // 自定义拦截器实现模糊查询中的特殊字符处理
    @Bean
    public SpecialCharactersInterceptor myInterceptor() {
        SpecialCharactersInterceptor sql = new SpecialCharactersInterceptor();
        return sql;
    }
}